for i in range(10000):
    for j in range(100):
        if i+100 == pow(j,2):
            for j in range(100):
                if i+100+168 == pow(j,2):
                    print(i)


